package com.qf.esdemo1.consts;

public interface ESConsts {

    /**
     * teacher2索引的映射
     */
    String TEACHER_MAPPING="{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"age\":{\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": true\n" +
            "      },\n" +
            "      \"weight\":{\n" +
            "        \"type\": \"float\"\n" +
            "      },\n" +
            "      \"isMarried\":{\n" +
            "        \"type\": \"boolean\"\n" +
            "      },\n" +
            "      \"info\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": true,\n" +
            "        \"analyzer\": \"ik_max_word\"\n" +
            "      },\n" +
            "      \"email\":{\n" +
            "        \"type\": \"keyword\",\n" +
            "        \"index\": true\n" +
            "      },\n" +
            "      \"score\":{\n" +
            "        \"type\": \"float\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"name\":{\n" +
            "        \"properties\": {\n" +
            "          \"firstname\":{\n" +
            "            \"type\":\"keyword\"\n" +
            "          },\n" +
            "          \"lastname\":{\n" +
            "            \"type\":\"keyword\"\n" +
            "          }\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
